<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>锚点</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        ul {
            list-style: none;
            position: fixe d;  
            right: 0px;
            top: 100px;
        }

        li {
            width: 100px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            border: 1px solid black;
        }
        div{
            height: 200px;
            background: burlywood;
            border: 1px solid gray;
        }
        .box{
            display: none;
        }
        .box:target{
            display: block;
        }
    </style>
</head> 
 
<body>
    <ul>     
        <li><a href="#a">京东秒杀</a></li>  
        <li><a href="#b">双11</a></li>
        <li><a href="#c">频道优选</a></li> 
        <li><a href="#d">广场</a></li>
    </ul>
    <div id="a" class="box">京东秒杀</div>
    <div id="b" class="box">双11</div>
    <div id="c" class="box">频道优选</div>
    <div id="d" class="box">广场</div>
</body>

</html>